package com.restaurantonlineorder.seller.vo.req;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author 熊宇
 * @date 2022/7/23 20:54
 * @description 订单请求参数
 */
@Data
@ToString
public class OrderReqVo {

    /**
     * 用户Id
     */
    @NotNull(message = "买家ID不能为空")
    private Long buyerId;

    @NotNull(message = "卖家ID不能为空")
    private Long sellerId;
    /**
     * 商店Id
     */
    @NotNull(message = "商店ID不能为空")
    private Long storeId;

    /**
     * 物品Id
     */
    @NotNull(message = "商品ID不能为空")
    private Long goodsId;

    /**
     * 物品数量
     */
    @NotNull(message = "物品数量不能为空")
    @Min(value = 1, message = "物品数量必须大于0")
    private Integer count;
}
